package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 制造执行MES-质量管理-质量报告对象 mes_product_inspector
 *
 * @author zhonghui
 * @date 2023-12-13
 */
public class MesProductInspectorVo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Excel(name = "编号")
    private Long id;

    /**
     * 流水号
     */
    @Excel(name = "流水号")
    private String serialNumber;

    /**
     * 生产完工ID
     */
    @Excel(name = "生产完工ID")
    private Long productionCompletionId;

    private String completionId;                  //  -- 计划编号
    private String inspectorId;                  //  -- 检验编号
    private String oddNumbers ;        //        -- 完工单号
    private String batchNumber;       //         -- 检验批次
    private String quantity;            //     -- 生产数量
    private String completionDate;     //         -- 生产日期
    private String checkItem;          //     -- 检验项目
    private String jobName;            //     -- 作业名称,产线名称
    private String materialName ;       //       -- 产品名称

    /**
     * 标准ID
     */
    @Excel(name = "标准ID")
    private Long standardsId;

    /**
     * 抽检数量
     */
    @Excel(name = "抽检数量")
    private Long sampleQuantity;

    /**
     * 检验值
     */
    @Excel(name = "检验值")
    private Long inspectionValue;

    /**
     * 检验结果(0-不合格,1-合格)
     */
    private Long result;

    /**
     * 检验人id
     */
    @Excel(name = "检验人id")
    private Long checkUserId;

    /**
     * 检验时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectorTime;



    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setProductionCompletionId(Long productionCompletionId) {
        this.productionCompletionId = productionCompletionId;
    }

    public Long getProductionCompletionId() {
        return productionCompletionId;
    }

    public void setStandardsId(Long standardsId) {
        this.standardsId = standardsId;
    }

    public Long getStandardsId() {
        return standardsId;
    }

    public void setSampleQuantity(Long sampleQuantity) {
        this.sampleQuantity = sampleQuantity;
    }

    public Long getSampleQuantity() {
        return sampleQuantity;
    }

    public void setInspectionValue(Long inspectionValue) {
        this.inspectionValue = inspectionValue;
    }

    public Long getInspectionValue() {
        return inspectionValue;
    }

    public void setResult(Long result) {
        this.result = result;
    }

    public Long getResult() {
        return result;
    }

    public void setCheckUserId(Long checkUserId) {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId() {
        return checkUserId;
    }

    public void setInspectorTime(Date inspectorTime) {
        this.inspectorTime = inspectorTime;
    }

    public Date getInspectorTime() {
        return inspectorTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("serialNumber", getSerialNumber())
                .append("productionCompletionId", getProductionCompletionId())
                .append("standardsId", getStandardsId())
                .append("completionId", getCompletionId())
                .append("oddNumbers", getOddNumbers())
                .append("batchNumber", getBatchNumber())
                .append("quantity", getQuantity())
                .append("completionDate", getCompletionDate())
                .append("checkItem", getCheckItem())
                .append("jobName", getJobName())
                .append("materialName", getMaterialName())
                .append("sampleQuantity", getSampleQuantity())
                .append("inspectionValue", getInspectionValue())
                .append("result", getResult())
                .append("checkUserId", getCheckUserId())
                .append("inspectorTime", getInspectorTime())
                .append("remark", getRemark())
                .toString();
    }

    /**
     * 获取
     * @return completionId
     */
    public String getCompletionId() {
        return completionId;
    }

    /**
     * 设置
     * @param completionId
     */
    public void setCompletionId(String completionId) {
        this.completionId = completionId;
    }

    /**
     * 获取
     * @return inspectorId
     */
    public String getInspectorId() {
        return inspectorId;
    }

    /**
     * 设置
     * @param inspectorId
     */
    public void setInspectorId(String inspectorId) {
        this.inspectorId = inspectorId;
    }

    /**
     * 获取
     * @return oddNumbers
     */
    public String getOddNumbers() {
        return oddNumbers;
    }

    /**
     * 设置
     * @param oddNumbers
     */
    public void setOddNumbers(String oddNumbers) {
        this.oddNumbers = oddNumbers;
    }

    /**
     * 获取
     * @return batchNumber
     */
    public String getBatchNumber() {
        return batchNumber;
    }

    /**
     * 设置
     * @param batchNumber
     */
    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    /**
     * 获取
     * @return quantity
     */
    public String getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return completionDate
     */
    public String getCompletionDate() {
        return completionDate;
    }

    /**
     * 设置
     * @param completionDate
     */
    public void setCompletionDate(String completionDate) {
        this.completionDate = completionDate;
    }

    /**
     * 获取
     * @return checkItem
     */
    public String getCheckItem() {
        return checkItem;
    }

    /**
     * 设置
     * @param checkItem
     */
    public void setCheckItem(String checkItem) {
        this.checkItem = checkItem;
    }

    /**
     * 获取
     * @return jobName
     */
    public String getJobName() {
        return jobName;
    }

    /**
     * 设置
     * @param jobName
     */
    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    /**
     * 获取
     * @return materialName
     */
    public String getMaterialName() {
        return materialName;
    }

    /**
     * 设置
     * @param materialName
     */
    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }
}
